"""
@author: tian-yan-tian-ge
@file: 2023.11.17统计字符串中大写字母、小写字母、数字、其他字符的个数.py
@time: 2023/11/17 20:14
"""
str1 = input("请输入字符串：")
upper_count = 0
lower_count = 0
number_count = 0
other_count = 0

for i in str1:
    if i.isupper():
        upper_count += 1
    elif i.islower():
        lower_count += 1
    elif i.isdigit():
        number_count += 1
    else:
        other_count += 1

print("字符串中大写字母数量:", upper_count)
print("字符串中小写字母数量:", lower_count)
print("字符串中数字数量:", number_count)
print("字符串中其他字符数量:", other_count)